package com.heima.model.behavior.dtos;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
public class LikesBehaviorDTO {
    /**
     * 文章id
     */
    @NotNull
    private Long articleId;
    /**
     * 设备id
     */
    private Integer equipmentId;

    /**
     * 操作  0 点赞  1 取消点赞
     */
    @Range(max = 1L)
    private Short operation;

    /**
     * 喜欢内容类型
     * 0文章
     * 1动态
     * 2评论
     */
    private Short type;
}
